package cn.myjava.gupao.mode.singleton;

/**
 * 注册式单例 - 枚举登记
 * 注册式单例分为 "容器缓存" 与 "枚举登记"
 * Created by RenFu
 * Date: 2019/5/12
 */
public enum  EnumSingleton {

    INSTANCE;

    private Object data;

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public static EnumSingleton getInstance() {
        return INSTANCE;
    }
}
